package org.chen.common.ctrip.crawler;

import lombok.Data;

@Data
public class CrawlResult {
    private int totalCount;      // 总处理商品数
    private int newCount;        // 新增商品数
    private int updateCount;     // 更新商品数
    private String message;      // 执行消息
    private boolean success;     // 是否成功
    
    public CrawlResult() {
        this.success = true;
        this.message = "执行成功";
    }
    
    public CrawlResult(int totalCount, int newCount, int updateCount) {
        this();
        this.totalCount = totalCount;
        this.newCount = newCount;
        this.updateCount = updateCount;
    }
}
